﻿@model ProjectManagement.Models._TaskTemplate
 @using Projectmanagement.Entity
@using Projectmanagement.Utl          
<fieldset style="width: 700px;">
    <legend id="legendTitle">新建任务模板</legend>
    <table class="noline">
        <tr>
            <td>@Html.LabelFor(x=>x.Name)</td>
            <td>
                @Html.TextBoxFor(x=>x.Name, new { style="width:165px;"})<br />
                @Html.ValidationMessageFor(x=>x.Name)
            </td>
            <td>@Html.LabelFor(x=>x.DateCount)</td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(model => model.DateCount).InputHtmlAttributes(new { style = "width: 165px" })<br />
                @Html.ValidationMessageFor(x=>x.DateCount)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Sequence)</td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(model => model.Sequence).InputHtmlAttributes(new { style = "width: 165px" })<br />
                @Html.ValidationMessageFor(x=>x.Sequence)
            </td>
            <td>@Html.LabelFor(x=>x.Duration)</td>
            <td>
                @Html.Telerik().IntegerTextBoxFor(x => x.Duration)<br />
                @Html.ValidationMessageFor(x => x.Duration)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.IsDefault)</td>
            <td>
                <select name="IsDefault" style="width:165px;">
                    <option value="false" @(Model.IsDefault?"":"selected")>否</option>
                    <option value="true" @(Model.IsDefault?"selected":"")>是</option>
                </select><br />
                @Html.ValidationMessageFor(x=>x.IsDefault)
            </td>
            <td>@Html.LabelFor(x=>x.RolePMID)</td>
            <td>
                @Html.DropDownListFor(m => m.RolePMID, new SelectList(CH.GetAllDatas<RolePM>().Where(w=>w.RoleLVL<=1000), "ID", "Name"), "请选择...")
                @Html.ValidationMessageFor(x => x.RolePMID)
            </td>
        </tr>

        <tr>
            <td>@Html.LabelFor(x=>x.KMLinks)</td>
            <td colspan="3">
                @Html.TextAreaFor(x => x.KMLinks, new { rows="4" ,cols="62"})<br />
                @Html.ValidationMessageFor(x=>x.KMLinks)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Content)</td>
            <td colspan="3">
                @Html.TextAreaFor(x=>x.Content, new { rows="4" ,cols="62"})<br />
                @Html.ValidationMessageFor(x=>x.Content)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(x=>x.Deliverables)</td>
            <td colspan="3">
                @Html.TextAreaFor(x => x.Deliverables, new { rows="4" ,cols="62"})<br />
                @Html.ValidationMessageFor(x => x.Deliverables)
            </td>
        </tr>
    </table>
</fieldset>

<style>
    .noline{width:100%;}
     .noline,.noline tr,.noline td{border: 0;padding:2px;}
</style>